import request from '@/utils/request'
// 获取考勤列表
export function getAttendancesList (params) {
  return request({
    url: '/attendances',
    params
  })
}
/**
 * @params {id,day,statu}
 * 
 */

export function updateAttendance (data) {
  return request({
    url: `/attendances/${data.id}`,
    method: 'put',
    data
  })
}

/**
 * 签到
 * 
 */

export function signIn () {
  return request({
    url: `/attendances/signIn`,
    method: 'post'
  })
}


